import { http } from '@/utils/request'

// 律师相关API
export const lawyerAPI = {
  // 获取律师资料
  getProfile: () => http.get('/lawyer/profile'),
  
  // 更新律师资料
  updateProfile: (data) => http.put('/lawyer/profile', data),
  
  // 获取分配的待处理案件
  getAssignedCases: (params) => http.get('/lawyer/assigned-cases', params),
  
  // 获取已接受的案件
  getAcceptedCases: (params) => http.get('/lawyer/accepted-cases', params),
  
  // 接受案件
  acceptCase: (caseId) => http.post(`/lawyer/cases/${caseId}/accept`),
  
  // 拒绝案件
  rejectCase: (caseId, reason) => http.post(`/lawyer/cases/${caseId}/reject`, { reason }),
  
  // 更新案件进度
  updateCaseProgress: (caseId, data) => http.patch(`/lawyer/cases/${caseId}/progress`, data),
  
  // 获取日程安排
  getSchedule: (params) => http.get('/lawyer/schedule', params),
  
  // 添加日程安排
  addScheduleEvent: (data) => http.post('/lawyer/schedule', data),
  
  // 更新日程安排
  updateScheduleEvent: (eventId, data) => http.put(`/lawyer/schedule/${eventId}`, data),
  
  // 删除日程安排
  deleteScheduleEvent: (eventId) => http.delete(`/lawyer/schedule/${eventId}`),
  
  // 获取律师统计信息
  getStatistics: () => http.get('/lawyer/statistics'),
  
  // 获取专业领域列表
  getSpecialtyAreas: () => http.get('/lawyer/specialty-areas'),
  
  // 更新专业领域
  updateSpecialtyAreas: (areas) => http.put('/lawyer/specialty-areas', { areas }),
  
  // 申请律师认证
  applyVerification: (data) => http.post('/lawyer/verification', data),
  
  // 获取认证状态
  getVerificationStatus: () => http.get('/lawyer/verification-status')
} 